package com.ultra.template.content;

import lombok.Data;

import java.util.Comparator;

/**
 * @author hcUltra
 * @description TODO
 * @date 2024/4/24 07:34
 **/
@Data
public class Order {
    private Boolean isSorted = true;
    // 默认正序
    private Comparator<?> comparator = Comparator.naturalOrder();
    public Order(Boolean isSorted) {
        this.isSorted = isSorted;
    }
    public Order(Boolean isSorted, Comparator<?> comparator) {
        this.isSorted = isSorted;
        this.comparator = comparator;
    }
    public Order() {
    }
}